#pragma once
#include"(new)RBTree.h"
using namespace std;

namespace linhui
{
	template<class Key>
	class mySet
	{
	public:
		struct KeyOfVal
		{
			Key operator()(const Key& key)
			{
				return key;
			}
		};
		using iterator = typename BRTree<Key, Key, KeyOfVal>::iterator;
		using const_iterator = typename BRTree<Key, Key, KeyOfVal>::const_iterator;
		pair<iterator,bool> Insert(const Key& input)
		{
			return _self.Insert(input);
		}
		iterator begin()
		{
			return _self.begin();
		}
		iterator end()
		{
			return _self.end();
		}
	private:
		BRTree<Key, Key, KeyOfVal> _self;
	};
}


